﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ClassB : ClassA
{
    
    /// <summary>
    /// 测试unity的monobehavior的继承：
    /// ClassB继承了ClassA，运行时不会挂载ClassA，不会运行ClassA的脚本的生命周期
    /// </summary>

    void Start()
    {
        Debug.Log("Start B");
        GetComponent<ClassA>();
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
